﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace BuildStatus.Web.Models
{
    public class BuildDefinition
    {
        private List<BuildDefinition> _history = new List<BuildDefinition>();

        public string Name { get; set; }
        public int BuildDefinitionId { get; set; }
        public string DisplayClass { get; set; }
        public string Status { get; set; }
        public string RequestedBy { get; set; }
        public string QueueTime { get; set; }
        public string StartTime { get; set; }
        public string Duration { get; set; }
        public string BuildNumber { get; set; }
        public string Version { get; set; }
        public bool IsWaiting { get; set; }
        public int Progress { get; set; }

        public List<BuildDefinition> History { get { return _history; } }
    }
}
